/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * formException.java
 *
 * Created on Mar 14, 2009, 7:18:35 PM
 */

package GUI.other;

/**
 *
 * @author JArik
 */
public class formException extends javax.swing.JPanel {

    /** Creates new form formException */
    public formException(String text) {
        initComponents();
        messageField.setText(text);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        messageField = new javax.swing.JLabel();

        setBackground(new java.awt.Color(250, 203, 156));

        messageField.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        messageField.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        messageField.setText("Ошибка");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(messageField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(messageField, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel messageField;
    // End of variables declaration//GEN-END:variables

}
